<?php
/*
 * Created on 28.07.2007
 *
 * by MasterGenny
 * 
 * Klasse um DB-Anbindung herzustellen
 */
 
 class BasedMySQLDao {
 	protected $host;
 	protected $db_name;
 	protected $db_user;
 	protected $db_passwort;
 	
 	function BasedMySQLDao(){
 		$this->host = "localhost";
 		$this->db_name = "DB515825";
 		$this->db_user = "root";
 		$this->db_passwort = "";
 		//$db_access["svoptik"]["host"] = "rdbms.strato.de";
//		$db_access["svoptik"]["uid"]  = "U515825";
//		$db_access["svoptik"]["pass"] = "DRAN3a9J";
//		$db_access["svoptik"]["db"]   = "DB515825";
 	}
 	
 	function db_start(){
 		$db = mysql_connect($this->host,$this->db_user,$this->db_passwort) or die;
 		mysql_select_db($this->db_name,$db) or die("DB-Connection failed: ".mysql_error());
		return $db;
 	}
 	
 	function db_stop($db){
 		mysql_close($db);
 	}
 }
?>
